package com.wangshang.location.po;

/**
 * AbstractLocationId entity provides the base persistence definition of the
 * LocationId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractLocationId implements java.io.Serializable {

	// Fields

	private Integer localId;
	private Long logicId;
	private String locationCountory;
	private String locationProvince;
	private String locationCity;

	// Constructors

	/** default constructor */
	public AbstractLocationId() {
	}

	/** full constructor */
	public AbstractLocationId(Integer localId, Long logicId,
			String locationCountory, String locationProvince,
			String locationCity) {
		this.localId = localId;
		this.logicId = logicId;
		this.locationCountory = locationCountory;
		this.locationProvince = locationProvince;
		this.locationCity = locationCity;
	}

	// Property accessors

	public Integer getLocalId() {
		return this.localId;
	}

	public void setLocalId(Integer localId) {
		this.localId = localId;
	}

	public Long getLogicId() {
		return this.logicId;
	}

	public void setLogicId(Long logicId) {
		this.logicId = logicId;
	}

	public String getLocationCountory() {
		return this.locationCountory;
	}

	public void setLocationCountory(String locationCountory) {
		this.locationCountory = locationCountory;
	}

	public String getLocationProvince() {
		return this.locationProvince;
	}

	public void setLocationProvince(String locationProvince) {
		this.locationProvince = locationProvince;
	}

	public String getLocationCity() {
		return this.locationCity;
	}

	public void setLocationCity(String locationCity) {
		this.locationCity = locationCity;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractLocationId))
			return false;
		AbstractLocationId castOther = (AbstractLocationId) other;

		return ((this.getLocalId() == castOther.getLocalId()) || (this
				.getLocalId() != null
				&& castOther.getLocalId() != null && this.getLocalId().equals(
				castOther.getLocalId())))
				&& ((this.getLogicId() == castOther.getLogicId()) || (this
						.getLogicId() != null
						&& castOther.getLogicId() != null && this.getLogicId()
						.equals(castOther.getLogicId())))
				&& ((this.getLocationCountory() == castOther
						.getLocationCountory()) || (this.getLocationCountory() != null
						&& castOther.getLocationCountory() != null && this
						.getLocationCountory().equals(
								castOther.getLocationCountory())))
				&& ((this.getLocationProvince() == castOther
						.getLocationProvince()) || (this.getLocationProvince() != null
						&& castOther.getLocationProvince() != null && this
						.getLocationProvince().equals(
								castOther.getLocationProvince())))
				&& ((this.getLocationCity() == castOther.getLocationCity()) || (this
						.getLocationCity() != null
						&& castOther.getLocationCity() != null && this
						.getLocationCity().equals(castOther.getLocationCity())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getLocalId() == null ? 0 : this.getLocalId().hashCode());
		result = 37 * result
				+ (getLogicId() == null ? 0 : this.getLogicId().hashCode());
		result = 37
				* result
				+ (getLocationCountory() == null ? 0 : this
						.getLocationCountory().hashCode());
		result = 37
				* result
				+ (getLocationProvince() == null ? 0 : this
						.getLocationProvince().hashCode());
		result = 37
				* result
				+ (getLocationCity() == null ? 0 : this.getLocationCity()
						.hashCode());
		return result;
	}

}